#include "cedge.h"

CEdge::CEdge()
{
	this->setFace(NULL);
	this->setHead(NULL);
	this->setTail(NULL);
	this->setTwinEdge(NULL);
	this->setNextEdge(NULL);
}

CVertex * CEdge::getHead()
{
	return this->m_pHeadVertex;
}

CVertex * CEdge::getTail()
{
	return this->m_pTailVertex;
}

CFace * CEdge::getFace()
{
	return this->m_pFace;
}

CEdge * CEdge::getTwinEdge()
{
	return this->m_pTwinEdge;
}

CEdge * CEdge::getNextEdge()
{
	return this->m_pNextEdge;
}

void CEdge::setHead(CVertex * pHead)
{
	this->m_pHeadVertex = pHead;
}

void CEdge::setTail(CVertex * pTail)
{
	this->m_pTailVertex = pTail;
}

void CEdge::setFace(CFace * pFace)
{
	this->m_pFace = pFace;
}

void CEdge::setTwinEdge(CEdge * pEdge)
{
	this->m_pTwinEdge = pEdge;
}

void CEdge::setNextEdge(CEdge * pEdge)
{
	this->m_pNextEdge = pEdge;
}
